package com.kingsoft.demo.reflection;

import java.lang.reflect.Method;

public class DateMethodsTest {
	
	
	public static void main(String[] args) throws Exception {
		
		//加载并初始化指定的类
		Class<?> classType = Class.forName("java.util.Date");      

		//获得类的所有方法 
		Method methods[] = classType.getDeclaredMethods();      
		for (int i = 0; i < methods.length; i++)      
		{      
			System.out.println(methods[i].toString());      
		}      
		      
		    

		
	}

}
